package com.sn.socket;


import com.sn.socket.utils.SockServer;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.DependsOn;


/**
 * @ProjectName: springboot_socket
 * @Package: com.sn.socket
 * @ClassName: ${CLASS_NAME}
 * @Author: xiahuihui
 * @Description: ${description}
 * @Date: 2020/5/11 0011 13:44
 * @Version: 1.0
 */

@SpringBootApplication
@DependsOn("springContextHolder")
public class SocketApplication implements CommandLineRunner {



    public static void main(String[] args) {

        SpringApplication.run(SocketApplication.class,args);


    }



    @Override
    public void run(String... args) throws Exception {

//        ChannelFuture start = sockServer.start();

        new SockServer();
//        System.out.println("启动客户端！！！");
//        nettyTcpClient.connect();
//        for (int i = 0; i < 10; i++) {
//            nettyTcpClient.sendMsg("hello world" + i);
//        }



    }
}
